import * as zhangsan from "./zhangsan.ts";

interface Person {
	readonly name : string;
	readonly age : number;
	phone ?: number[];//数组
	blone?:[string,number];//元组
	anything ?: any;
	undefind?: void;
}

enum clour {red, green, blue};

var c:clour = clour.blue;

function greeter(person: Person) {
    return "Hello, " + person.name + " my age is a"+ person.age;
}
zhangsan.test("zhangsan","hello",20);

var user = {name:"zhangsan",age:21};

document.getElementById("test").innerHTML = greeter(user);